package com.ruoyi.college.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @author 明一G
 * @date 2023/3/26 18:55
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("th_class")
public class Class extends BaseEntity implements Serializable {
	@Excel(name = "编号")
	@TableId(type = IdType.AUTO)
	Long id;

	Long majorId;

	@Excel(name = "名称")
	String name;

	@Excel(name = "年级")
	String grade;

	@TableField(exist = false)
	Major major;

	@Excel(name = "专业")
	@TableField(exist = false)
	String majorName;
}
